package com.zr.sparesubclass.mapper;

import com.zr.sparesubclass.bean.LegalPerson;
import com.zr.sparesubclass.bean.Plant;
import com.zr.sparesubclass.model.AddPlantVo;
import com.zr.sparesubclass.model.PlantQueryVo;
import com.zr.sparesubclass.model.UpdateEnabledVo;
import org.apache.ibatis.annotations.Mapper;

import javax.validation.constraints.NotBlank;
import java.util.List;

@Mapper
public interface PlantMapper {
    List<LegalPerson> findLegalPersonByUserId(int id);

    int queryCount(PlantQueryVo plantQueryVo);

    List<Plant> queryPage(PlantQueryVo plantQueryVo);

    void updatestatus(UpdateEnabledVo updateEnabledVo);

    List<Plant> findPlantByCode(String legalPlantCode);

    void add(AddPlantVo addPlantVo);

    String querylegalPersonName(String legalPlantCode);

    void update(AddPlantVo addPlantVo);

    int findPlantByPlantCode(String legalPlantCode);

    List<String> queryById(List<Integer> ids);
}
